import React, { Component } from 'react'
import * as actionTypes from './actiionTypes';
import $http from '../../../Utils/request'
import * as api from '../public/api';
import { getShopInfoUrl } from '../public/api'
export const getShopinfo = (data) =>({type:actionTypes.SHOP_INFO_LIST,data})

// 获取列表信息
export const getShop = () => (dispatch,getState) =>{
  //获取状态信息
  const state = getState()
  //请求后台
  $http.post(api.getShopInfoUrl,null).then((response)=>{
    console.log("请求成功返回==>",response);
  }).catch(e =>{
    console.log("报错信息");
  })




}
